﻿using MediatR;
using PublicClass;
using System.ComponentModel.DataAnnotations;

namespace S.Produce.Api.Application.Commands.WearningCommands
{
    /// <summary>
    /// 修改种母断奶信息
    /// </summary>
    public class WeaningUpdateCommand : AuditFields, IRequest<int>
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [Key]
        public int SwId { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string? Earbugles { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string? Head { get; set; }

        /// <summary>
        /// 断奶日期
        /// </summary>
        public DateTime? WeaningDate { get; set; }

        /// <summary>
        /// 哺乳天数
        /// </summary>
        public int? lacationDays { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        [StringLength(50)]
        public string? Currentbuilding { get; set; }

        /// <summary>
        /// 当前栏位
        /// </summary>
        [StringLength(50)]
        public string? Currentfield { get; set; }

        /// <summary>
        /// 转入栋舍
        /// </summary>
        [StringLength(50)]
        public string? Transferbuilding { get; set; }

        /// <summary>
        /// 转入栏位
        /// </summary>
        [StringLength(50)]
        public string? Transferfileld { get; set; }

        /// <summary>
        /// 断奶只数
        /// </summary>
        public int? Weaningnumber { get; set; }

        /// <summary>
        /// 断奶总窝重
        /// </summary>
        public decimal? WeaningAllweight { get; set; }

        /// <summary>
        /// 种母重量
        /// </summary>
        public decimal? Weaningweight { get; set; }

        /// <summary>
        /// 断奶原因
        /// </summary>
        [StringLength(50)]
        public string? Weaningreason { get; set; }
    }
}
